PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class


In This Topic
    PDFCanvas Class Methods
    In This Topic

    For a list of all members of this type, see PDFCanvas members.

    Public Methods
     NameDescription
    Public MethodBegins an artifact marked content sequence.
    Each beginArtifactMarkedContent call must be paired with a call.  
    Public MethodOverloaded. Begins marked content sequence.
    Each beginMarkedContent call must be paired with a call.  
    Public MethodOverloaded. Begins a marked content sequence associated with a object.
    Each beginStructureElement call must be paired with a call.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodCompresses the graphic content and closes the graphics surface.
    Call this method to compress the graphic content and reduce memory usage. If this method is not called, the graphic content is stored uncompressed in the PDF file. After calling this method no more drawing is allowed on the graphics.  
    Public MethodOverloaded. Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.  
    Public MethodDraws a barcode at the specified position.  
    Public MethodOverloaded. Draws a Bézier spline specified by four Objects.  
    Public MethodOverloaded. Draws a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.  
    Public MethodDraws a cloud shape specified by an array of points.  
    Public MethodOverloaded. This method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodOverloaded. Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.  
    Public MethodOverloaded. Draws the formatted content on the graphics surface at the specified position.  
    Public MethodOverloaded. Draws the specified at the specified location and with the specified size.  
    Public MethodOverloaded. Draws the specified at the specified location and with the specified size.
    If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.  
    Public MethodOverloaded. Draws a line connecting the two points specified by the coordinate pairs.  
    Public MethodOverloaded. Draws a .  
    Public MethodOverloaded. Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.  
    Public MethodOverloaded. Draws a rectangle specified by a coordinate pair, a width, and a height.  
    Public MethodOverloaded. Draws a rounded rectangle specified by a coordinate pair, a width, and a height.  
    Public MethodDraws a PDF shading.
    The position of the shading is defined on the object.  
    Public MethodOverloaded. Draws the specified at the specified location and with the specified size.
    A stencil mask is a B/W image where the 1 pixels are left transparent and 0 pixels are filled with the brush.
    If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the stencil mask is scaled automatically to fit the given area and the original aspect ratio is kept.  
    Public MethodOverloaded. Draws the specified text string at the specified location with the specified and @see com.o2sol.pdf4java.graphics.PDFFont Objects.  
    Public MethodEnds a marked content sequence.  
    Public MethodEnds a marked content sequence associated with a com.o2sol.pdf4java.logicalstructure.PDFStructureElement object.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodMultiplies the current transformation of this graphics and specified the matrix.  
    Public MethodRestores the current graphics state of this canvas.  
    Public MethodApplies the specified rotation to the transformation matrix of this canvas.  
    Public MethodSaves the current graphics state of this canvas  
    Public MethodApplies the specified scaling operation to the transformation matrix of this graphics by prepending it to the current transformation matrix.  
    Public MethodThis method supports the internal library infrastructure and should not be used by external client code.  
    Public MethodOverloaded. Sets the clipping region of this graphics to the specified path.
    The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see method) before setting a clipping path and restore the graphics state (see method) after the clipping path is no longer needed.  
    Public MethodSets a new graphics state in this graphics Object.  
    Public MethodChanges the origin of the coordinate system by prepending the specified translation to the transformation matrix of this canvas.  
    Top
    See Also